package com.rms.server.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Getter
@Setter
@Schema(name = "DailySalesProfitDTO", description = "每日销售额和利润数据传输对象")
public class DailySalesProfitDTO {
    @Schema(description = "订单日期")
    @JsonFormat(pattern = "yyyy-MM-dd")  // 修改格式为仅日期部分
    private LocalDateTime orderDate;  // 订单日期
    @Schema(description = "订单总额")
    private BigDecimal dailySales;  // 当日总销售额
    @Schema(description = "订单利润")
    private BigDecimal dailyProfit; // 当日总利润
}
